//
//  ContactViewModel.h
//  BrushFace
//
//  Created by 小小旭 on 15/12/23.
//  Copyright © 2015年 Zzz. All rights reserved.
//

#import "BaseSceneModel.h"

@interface ContactViewModel : BaseSceneModel

@property (nonatomic, strong)NSMutableArray *dataSource;

/**
 *  获取一度好友列表
 */
- (void)connection_getLevel1RelationAndCB:(void (^)(id output))CB;
/**
 *  获取二度好友
 */
- (void)connection_getLevel2RelationAndCB:(void(^)(id output))CB;


/**
 *  上传通讯录
 */
- (void)connection_uploadAddressBookWithArray:(NSMutableArray *)array andCB:(void(^)(id output))CB;


/**
 *  获取新的好友列表
 */
- (void)addressBook_GetNewFriendListAndCB:(void(^)(id output))CB;

/**
 *  搜索好友
 */
- (void)searchUserWithPhone:(NSString *)phone andCB:(void(^)(id output))CB;


/**
 *  获取好友详细信息
 */
- (void)fetchFriendDetailInfoWithUserId:(NSString *)userid andCB:(void(^)(id output))CB;


/**
 *  添加好友
 */
- (void)addFriendWithFriendID:(NSString *)friendID andMessage:(NSString *)message andSource:(NSString *)source andCB:(void(^)(id output))CB;


/**
 *  获取手机联系人
 */
- (void)fetchAllFriendInAddressBookAndCB:(void(^)(id output))CB;


/**
 *  查询请求添加的详细信息
 */
- (void)fetchFriendDetailWithRequestWithUserId:(NSString *)userid andCB:(void(^)(id output))CB;
@end
